import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '../pages/login'
import Layout from '../pages/layout'
import AppMain from '@/components/layout/AppMain'
import User from '@/components/main/user'
import Circle from '@/components/main/circle'
import Focus from '@/components/main/content/focus'
import Strategy from '@/components/main/content/strategy'
import Video from '@/components/main/content/video'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/',
      name: 'layout',
      component: Layout,
      redirect: '/user',
      children:[
        {
          path:'user',
          component: User
        },
        {
          path:'content',
          component: User
       
        },
        {
           path: 'focus',
           component: Focus
        },{
          path: 'strategy',
          component: Strategy
        },
        {
          path:'circle',
          component: Circle
        },
        {
          path:'illegal',
          component: User
        },{
          path:'video',
          component: Video
        }
      ]
    },{
      path: '/test',
      name: 'test',
      component: AppMain
    }
  ]
})
